package com.hujun.service;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hujun.dao.GoodsMapper;
import com.hujun.model.Goods;
import com.hujun.model.GoodsExample;

@Service
public class ItestImpl implements Itest {
	@Autowired
	private GoodsMapper goodsMapper;
	@Override
	public List<Goods> select(Integer id) {
		GoodsExample example=new GoodsExample();
		example.createCriteria().andIdEqualTo(id);
		return goodsMapper.selectByExample(example);
	}

}
